using System;
using System.ComponentModel;
using System.Linq;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

namespace ApiTest.Entitys
{
    /// <summary>
    /// 商品分类
    /// </summary>  
    /// <remarks>
    /// <![CDATA[ENGINE=InnoDB  COMMENT='商品分类']]>
    /// </remarks>
    [DbSource("Default"), Serializable]
    public class GoodsClassify
    {
        /// <summary>
        /// 类目代号
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(64) NOT NULL COMMENT '类目代号']]>
        /// </remarks>
        [Primary(64)]
        [DisplayName("类目代号")]
        public string ClassifyCode { get; set; }

        /// <summary>
        /// 类目名称
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(64) DEFAULT NULL COMMENT '类目名称']]>
        /// </remarks>
        [Column(64)]
        [DisplayName("类目名称")]
        public string ClassifyName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        /// <remarks>
        /// <![CDATA[varchar(255) DEFAULT NULL COMMENT '描述']]>
        /// </remarks>
        [Column(255)]
        [DisplayName("描述")]
        public string Brief { get; set; }

        /// <summary>
        /// ***
        /// </summary>
        /// <remarks>
        /// <![CDATA[bit(1) NOT NULL COMMENT ' ***']]>
        /// </remarks>
        [JsonIgnore]
        [Column(1, false)]
        public bool IsDel { get; set; }

        /// <summary>
        /// 是否审核
        /// </summary>
        /// <remarks>
        /// <![CDATA[bit(1) NOT NULL COMMENT '是否审核']]>
        /// </remarks>
        [Column(1, false)]
        [DisplayName("是否审核")]
        public bool IsApproved { get; set; }

        /// <summary>
        /// create_time
        /// </summary>
        /// <remarks>
        /// <![CDATA[datetime NOT NULL COMMENT '']]>
        /// </remarks>
        [Column(false)]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 显示排序
        /// </summary>
        /// <remarks>
        /// <![CDATA[int NOT NULL COMMENT '显示排序']]>
        /// </remarks>
        [Column(false)]
        [DisplayName("显示排序")]
        public int Sort { get; set; }

    }
}
